#include"Progress.h"
#include<stdio.h>
#include<string.h>
#include<unistd.h>
#define NUM 101
#define STYLE '='

void Process()
{
    const char *lable = "|/-\\"; 
    char bar[NUM];
    memset(bar, '\0',sizeof(bar));//字符串原始设为空
    int count = 0;
    while(count <= 100)
    {
        printf("[%-100s][%d%%][%c]\r",bar,count,lable[count%4]);
        fflush(stdout);
        bar[count] = STYLE;
        usleep(100000);
        count++;
    }
    printf("\r\n");
}
